<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" charset="utf-8"></script>
	</head>
	<body>
		<h3>姓名（单值）、年龄（单值）、爱好（数组）、女朋友（对象）、豪车（对象数组）</h3>
		<div id="app">
			{{name}} | {{age}} <hr>
			{{hobby}} | {{hobby[0]}} | {{hobby[hobby.length-1]}} <hr>
			{{girl.name}} | {{girl.age}} | {{girl.hobby}} <hr>
			{{cars[0].name}} | {{cars[0].color}}<hr>
			{{cars[1].name}} | {{cars[1].color}}<hr>
			{{cars[2].name}} | {{cars[2].color}}
		</div>
	</body>
	<script>
		new Vue({
			el:"#app",
			data:{
				name:"陈强",
				age:18,
				hobby:["乒乓球","爬山","唱歌","起飞"],
				girl:{
					name:"小芳",
					age:18,
					hobby:["乒乓球","爬山","唱歌","起飞"],
				},
				cars:[{
					name:"五菱",
					color:"白"
				},{
					name:"东风",
					color:"红"
				},{
					name:"红旗",
					color:"黑"
				}]
			}
		})
	</script>
</html>
